<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>后台管理系统</title>
<js href="__PUBLIC__/Js/Jquery/jquery-1.4.4.min.js" />
<link href="../Public/admin/css/golbal.css" rel="stylesheet" type="text/css" />
<link href="../Public/admin/css/addmember.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="tittle">
<span>编辑目录</span>
<a href="{:U('Category/'.$model)}">返 回</a>
</div>

<div class="addm">
<form action="{:U('Category/editcate',array('cateid'=>$info['cateid']))}" method="post"">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<if condition="($erorsta eq 1)">
	<tr>
		<td colspan="3" style="text-align:center; color:red;">{$error}</td>
	</tr>
</if>
<tr>
<td height="40">分类名称：</td>
<td colspan="2"><input name="catename" type="text" maxlength="10" value="{$info.catename}"/></td>
</tr>
<tr>
<td  height="40">英文名称：</td>
<td colspan="2"><input name="engname" value="{$info.engname}" maxlength="15" type="text"/></td>
</tr>
<tr>
<td  height="40">所属资源库：</td>
<td colspan="2">
<select name="cateppid" id="cateppid">
	<option value='{$catepid}' selected>新建分类</option>
	<volist id="cates" name="lists">
	<option value="{$cates.cateid}" <php>if($info['catepid'] == $cates['cateid']){</php>selected<php>}</php>>{$cates.catename}</option>
	</volist>
</select>
</td>
</tr>
<tr>
<td  height="40" width="150">备注：</td>
<td colspan="2"><input class="txt" type="text" maxlength="10" value="{$info.remark}" name="remark" value=""/></td>
<td id="nicknameinfo" style="text-align:center" width="170"></td>
</tr>
<tr>
<td  height="40">是否显示：</td>
<td colspan="2" class="rad"><input class="radi" <php>if($info['status'] == 0){</php>checked="checked"<php>}</php> type="radio" name="status" value="0"/>不显示       <input class="radi" name="status" <php>if($info['status'] == 1){</php>checked="checked"<php>}</php> type="radio" value="1"/>显示       </td>
</tr>
<tr>
<td  height="40">排序：</td>
<td colspan="2"><input class="txt" type="text" onkeydown="if(event.keyCode==13)event.keyCode=9" onKeyPRess="if((event.keyCode<48 || event.keyCode>57)) event.returnValue=false" name="orders" maxlength="2" value="{$info.orders}"/></td>
</tr>
<tr>
<td height="100"><input type="hidden" name="model" value="{$model}" /></td>
<td colspan="2" class="fixbt"><input type="submit" class="fixed_bt" value="确 定"/></td>
</tr>
</tbody>
</table>
</form>
</div>
<script type="text/javascript">
function showsid(value){
	var a = value;
	if(a == '') return false;
	$.post("{:U('Category/showsid')}", {pid:a}, function(res){
		if(res == '0'){
			alert('请选择资源库');
		}else{
			$('#cateppid').html(res);
		}
		
	});
	
}
</script>
</body>
</html>
